<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<form action="adicionar-disciplina" method="POST" class="form-horizontal" id="frmDisciplina">
	<fieldset>
   		<legend><h3>Disciplina <small> incluir</small></h3></legend>
   		<div class="control-group">
    		<label class="control-label">Nome: </label>
    		<div class="controls">
    			<input type="text" name="nome" class="input-large" />
    		</div>
    		
    		<label class="control-label">Semestre: </label>
    		<div class="controls">
    			<input type="text" name="semestre" class="input-large" />
    		</div>
    		<br />
    		
    		<label class="control-label" title="Quantidade de provas">Qtde de provas: </label>
    		<div class="controls">
    			<input type="text" name="qtdProvas" class="input-large" />
    		</div>
    		
    		<label class="control-label">Peso das provas: </label>
    		<div class="controls">
    			<input type="text" name="pesoProvas" class="input-large" />
    		</div>
    		
    		<br/>
    		
    		<label class="control-label" title="Quantidade de trabalhos">Qtde de trabalhos: </label>
    		<div class="controls">
    			<input type="text" name="qtdTrab" class="input-large" />
    		</div>
    		
    		<label class="control-label">Peso dos trabalhos: </label>
    		<div class="controls">
    			<input type="text" name="pesoTrab" class="input-large" />
    		</div>
    			
   		</div>
   	</fieldset>

</form>

<div class="control-group form-horizontal">
	<div class="controls">
		<button id="salvar" class="btn btn-success">Salvar</button>
		<a href="/web/listar-disciplinas"><button class="btn">Cancelar</button></a>
	</div>
</div>

<script>
$(document).ready(function () {
 	$("#salvar").click(function () { $("#frmDisciplina").submit(); });
});
</script>